package com.xyz.springcloud.lb;

import org.springframework.cloud.client.ServiceInstance;

import java.util.List;

/**
 * 手写本地负载均衡
 * @author 肖咉卓
 */
public interface LoadBalancer {
    /**
     * 获得存活的服务
     * @param serviceInstances
     * @return
     */
    ServiceInstance instances(List<ServiceInstance> serviceInstances);
}
